﻿namespace DemoApp_MRU_ModernUI
{
    using DemoApp_MRU_Metro;
    using FirstFloor.ModernUI.Presentation;
    using FirstFloor.ModernUI.Windows.Controls;
    using System;

    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : ModernWindow
    {
        private AppViewModel appVM;

        public MainWindow()
        {
            InitializeComponent();

            appVM = new AppViewModel();
            appVM.MruList.AddMRUEntry(@"C:\MyFiles\sdksjdk");
            appVM.MruList.AddMRUEntry(@"C:\MyFiles\sdksjdk\demo\demo.txt");
            appVM.MruList.AddMRUEntry(@"C:\MyFiles\sdksjdk\demo\demo2.txt");
            appVM.MruList.AddMRUEntry(@"C:\MyFiles\sdksjdk\demo\demo11.txt");
            appVM.MruList.AddMRUEntry(@"G:\MyFiles\Notes.txt");

            DataContext = appVM;

            // This is necessary to load light theme by default
            // (otherwise generic theme is loaded by default - generic is often very similar but not same as default)
            AppearanceManager.Current.ThemeSource = new Uri("/DemoApp_MRU_ModernUI;component/Pages/Settings/ModernUI.Light.xaml", UriKind.RelativeOrAbsolute);
        }
    }
}
